package com.ahnu.tongue.dao;

import com.ahnu.tongue.entity.TongueRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TongueRecordMapper {
    void insert(TongueRecord record);
    
    TongueRecord findById(@Param("id") Long id);
    
    List<TongueRecord> findByUserId(@Param("userId") Long userId);
    
    List<TongueRecord> findByUserIdWithPaging(
        @Param("userId") Long userId,
        @Param("offset") int offset,
        @Param("limit") int limit
    );
    
    int update(TongueRecord record);
    
    void delete(@Param("id") Long id);
    
    int countByUserId(@Param("userId") Long userId);
} 